<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Eel Demo</title>
</head>
<body style="background-color: red ;color: white;">
<h1 id="greeting">Hello, World!</h1>
<button onclick="updateGreeting()">Update Greeting</button>

<h1 id="3">Hello, World!</h1>
<button onclick="updateGreeting()">Update Greeting</button>
<h1 id="4">Hello, World!</h1>
<button onclick="updateGreeting()">Update Greeting</button>


<table>
    <tr>
        <th>ID</th>
        <th>Name</th>
        <th>Age</th>
    </tr>
    <tr>
        <td>1</td>
        <td>John</td>
        <td>25</td>
    </tr>
    <tr>
        <td>2</td>
        <td>Jane</td>
        <td>30</td>
    </tr>
    <tr>
        <td>3</td>
        <td>Bob</td>
        <td>40</td>
    </tr>
</table>

<script src="eel.js"></script>
<script>
    async function updateGreeting() {
        const newGreeting = await eel.generate_new_greeting()();
        document.getElementById('greeting').textContent = newGreeting;
    }
</script>
</body>
</html>
